package models;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import play.db.jpa.Model;

@Table( uniqueConstraints = { @UniqueConstraint(columnNames = {"house_id"})})
@Entity
public class Person extends Model
{
	@OneToOne

	public House house;

	public String name;

	@Override
	public String toString()
	{
		return "Person{" +
					   ", name='" + name + '\'' +
					   "} " + super.toString();
	}
}
